{extend name="public/base"}

{block name="style"}
<link rel="stylesheet" href="__STATIC__/admin/css/news.css" media="all" />
{/block}


{block name="main"}
<body class="childrenBody">
<blockquote class="layui-elem-quote">
    <form class="layui-form" action="?">
        <div class="layui-inline">
            <a class="layui-btn layui-btn-normal Add_btn" data-url="{:url('video_save')}">添加视频</a>
        </div>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" value="{$param.name|default=''}" name="name" placeholder="请输入视频名字" class="layui-input search_input">
            </div>
            <button type="submit" class="layui-btn search_btn">查询</button>
        </div>
    </form>
</blockquote>
<div class="layui-form news_list">
    <table class="layui-table">
        <colgroup>
            <col width="50">
            <col>
            <col width="9%">
            <col width="29%">
            <col width="9%">
            <col width="9%">
            <col width="15%">
        </colgroup>
        <thead>
        <tr>
            <th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"></th>
            <th>视频名</th>
            <th>图片</th>
            <th>连接</th>
            <th>时长</th>
            <th>播放次数</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody class="news_content">
            {volist name="data" id="vo"}
            <tr>
                <td><input type="checkbox" name="" lay-skin="primary" lay-filter="choose"></td>
                <td>{$vo.name}</td>
                <td><img src="{$vo.image}" style="max-width: 100px;" /> </td>
                <td>{$vo.url}</td>
                <td>{$vo.duration}</td>
                <td>{$vo.play_count}</td>
                <td><a href="{:url('video_save', ['id' => $vo.id])}" class="layui-btn ">编辑</a> <a href="{:url('video_delete', ['id' => $vo.id])}" class="layui-btn layui-btn-danger">删除</a></td>
            </tr>
            {/volist}
        </tbody>
    </table>
</div>
<div id="page"></div>
{/block}

{block name="javascript"}
{/block}